/*
 * @Author: your name
 * @Date: 2020-10-22 17:59:38
 * @LastEditTime: 2020-12-21 14:54:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tlwok-filing-saas-front\vue.config.js
 */
const scssVariables = require('./src/theme/variables.scss.js')
module.exports = {
  lintOnSave: false,
  configureWebpack: {
    resolve: {
    },
  },
  css: {
    loaderOptions: {
      sass: {
        // @是src的别名
        additionalData: Object.keys(scssVariables)
          .map(k => `${k}: ${scssVariables[k]};`)
          .join('\n'),
      },
    },
  },
  devServer: {
    proxy: {
      '/api/': {
        target: 'https://saas-test1.tlwok.com',
        // target: 'https://saas-manage-test1.tlwok.com/',
        changeOrigin: true,
        // cookieDomainRewrite: 'localhost',
        headers: {
          referer: 'https://saas-test1.tlwok.com',
          // referer: 'https://saas-manage-test1.tlwok.com/',
          cookie: '_ga=GA1.2.1569602850.1607066148; provinceName=%E5%8C%97%E4%BA%AC%E5%B8%82; provinceCode=11; xn_dvid_wo_1000=1BCE58-6AC4A9E4-F738-1148-28BD-2CA0FC56E498; __jdv=86320733%7Cdirect%7C-%7Cnone%7C-%7C1608016468606; __jda=86320733.1606787944402477239972.1606787944.1607325293.1608021188.9; _ecc_b2b_=C994EAE99E1553C0E68C449999ACB74F64F4F13F4B321B25BC321AEB4F25D9A6621FB9DCC24805445F597A2343BB509FE05E2CEFD1ED8A1AF205624B6D626CC1555A2D0F29E538B4E6BF7C9A403EF2A47E6184F70217D62F6F10945ABA34222177763D6E3BE1F711E403FBEE9DA1A150ACAE062567F7B8F732D6DE64E48EF457B31A641E6BD25241230CAF1168712C1DCEA34363BD681994F090293CD27F9EECAE2681D0E8A9E79AC0D030D19F9309104E7C5BEFA1E21421C15C3CD66492B16F9E2365D09F708872B60C87C2E96A98A438A2643D0247F2B4F1B1FF175A0E35C88E55F2F58F3EF69B7A034ACAA649C763DB5E2F415751D3CCE4E6F688D3D614A864F87FCCA1F259840990295055FD958E; _ecc_sid_=53428D4F8AAFD45E48664B0EE0C0835C6B62436F343D6B1061C3EF074AC82B65CE4BDF5EAE5BFC478B9E67B5796BE0CFBFC3898F43CDFC675D70E194C25BC952C56AA12BB15A7F98CF788D38964241033498337CA6A9745A0FFC0768A95794E138A03464B45EC18026C865B7FBFA723DFB9268ECFA529704CEF45322406FC292FFB91A43779947A1AD89E187436B064AB286356211E71C7B0976E2828AD15A4AFA89E927933DE167F1907A6F4D20F7628B7BBA8A07F1C14D5961ADB762EBB9B6C67DA896FBCCCF3A20C81001D62279E4E4F64E985F61D0DD9A24BD5989D288B17A1245BBFAF7AF5B8AE74FDB4BC6A04BAF07F0BF7471DC5D364A3964991CD91FC8ED17640E3A21B499124C70E2A6E78DE5C3E44CCE54DE98C9A241AD34745C8B4678D78E82AD7CEE2969AB7685482E2D7315B4A49495978465B32A964F7C966B30FFACF68038550C33378F58B695AAC75A62924D87D3F6897129AE546DCEDB4387BBB8F9183E9F6CE897C0054D75F2996DA2A75A1ABD235E7198CC5961AB6E3D29E59117F567E5D96D73348477FB36E9A28448019B0ADA48D42072F670A4DC385FDDB43CA73048BAB07FBFC145BD6C1513D4BF71C4F52F1AF5A2C716C66313DBC6D392EC47B186FF53ACBE9540A36F36853196B5B1D7DE814F4EBC73B2F0F85287C6B21ACC63225511B7E286D78080124333A6119528F3546B7D599E8AB102CC9D12459CD8456727D0B26FB7961BAD704BDE99D8FB4502BAC9EBC4C33D679C7634A01273DEBC6FC8D3B71B6A79F1F381DCF9F2B2C9226B229493967B7099994DD298C37E2C5CDF39864623E3241A0DF3',
          // cookie: '_ga=GA1.2.1569602850.1607066148; provinceCode=11; provinceName=%E5%8C%97%E4%BA%AC%E5%B8%82; xn_dvid_wo_1000=1BCE58-6AC4A9E4-F738-1148-28BD-2CA0FC56E498; __jdv=86320733%7Cdirect%7C-%7Cnone%7C-%7C1608016468606; __jda=86320733.1606787944402477239972.1606787944.1607325293.1608021188.9; token=57e9611c-264e-48d1-84ea-96310c0004d4',
        },
        // pathRewrite: { '^/api/': '' },
        // headers: {
        //   referer: 'http://saas-test1.tlwok.com/hahahahahahahahasb',
        // },
      },
    },
  },
}
